package nuist.hanniko.stu.webbackend.model;

import java.util.Date;

public class Notification {
    private String id;
    private String principal;
    private String content;
    private boolean confirmed;
    private Date createTime;

    public Notification(String principal, String content, Date createTime) {
        this.principal = principal;
        this.content = content;
        this.createTime = createTime;
        this.confirmed = false;
    }

    public Notification(String id, String principal, String content, boolean confirmed, Date createTime) {
        this.id = id;
        this.principal = principal;
        this.content = content;
        this.confirmed = confirmed;
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isConfirmed() {
        return confirmed;
    }

    public void setConfirmed(boolean confirmed) {
        this.confirmed = confirmed;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
